STEP 6: Let's create and place the left leg.

  • Drop a Rectangle inside the function block and change its variable name to left_leg.
  • Change left_leg's arguments so they are (x-10, y-50, 50, 5, color).
  • From , drag out Set Rotation in the function and assign it to left_leg.
  • Change the integer argument in .set_rotation() to 60.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)